Application.ExecuteCommand("Filter")
SelectionFilterDlg.Nothing.Click()
SelectionFilterDlg.SelectionObjectsDlg.Unions = true
SelectionFilterDlg.Ok.Click()
Application.StatusBarText = "Select Groups"
'ApplicationMode=1 ' route
dim ws : set ws = CreateObject("WScript.Shell")
dim varName : varName = "ApplicationMode"
dim varValue : varValue = 0 
ws.RegWrite "HKEY_CURRENT_USER\Software\MyApp\PADS\" & varName, varValue, "REG_EXPAND_SZ"
ws.RegWrite "HKEY_CURRENT_USER\Software\MyApp\PADS\IsUnion", 1, "REG_EXPAND_SZ"
set ws = nothing